<template>
  <div>
    <RouterView />
  </div>
</template>
<script lang="ts" setup>
import { useServer } from '@/stores/pax'
import { onMounted } from 'vue'

const serverStore = useServer()

onMounted(async () => {
  await serverStore.fetchServerList() // 只在父组件中调用一次
})
</script>

